package com.authorityManagement.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
public class RouterVo {
      //路由地址
      private String path;
      //路由对应的组件地址
      private String component;
      //路由名称
      private String name;
      //是否显示
      private boolean alwayShow;
      //路由Meta信息
      private Meta meta;
      //子路由
      private List<RouterVo> children = new ArrayList<>();
      
      @Data
      @AllArgsConstructor
      @NoArgsConstructor
      
      public class Meta{
           private String title;
           private String icon;
           private List roles;
      }
}
